{include file="pub_header.htm"}

<div class="out_table">
<table width="100%" cellpadding="3" cellspacing="0" border="0" align="center" class="current_place">
  <tr>
    <td align="left" nowrap>&nbsp;
      <a href="{$lang.s._public.global.weburl}" target="_self" class="current_place">{$lang.s._public.global.website}</a>
      &raquo; <a href="{$control_index}?act=index" target="_self" class="current_place">论坛首页</a>
      &raquo; <a href="{$control_index}?act=friendlink_list&pag={$get.pag}" target="_self" class="current_place">友情链接</a>
    </td>
    <td align="right" nowrap>&nbsp;</td>
  </tr>
</table>
</div>

<div class="out_table">
<table width="98%" cellpadding="3" cellspacing="0" border="0" align="center">
  <tr>
    <td align="left"></td>
    <td align="right">
    {if $pagination.page_total > 1}
      <span class="pagination_post_list">
        <span class="pagelink_side" title="Total record{$pagination.record_total}">{$pagination.record_total}</span>
        <span class="pagelink_side" title="Current page{$pagination.page_current}/Page{$pagination.page_total}"><span class="pagelink_current_rate">{$pagination.page_current}</span>/{$pagination.page_total}</span>
        {if $pagination.page_listbegin != ""}<span class="pagelink_side" title="Go to first page"><a href="{$pagination.url|print_format:$pagination.page_listbegin}" target="_self">&laquo;</a></span>{/if}
        {if $pagination.page_listbegin_more != ""}<span class="pagelink_side" title="Jump {$pagination.page_listnum/2|@floor} page"><a href="{$pagination.url|print_format:$pagination.page_listbegin_more}" target="_self">...</a></span>{/if}
        {if $pagination.page_previous != ""}<span class="pagelink_side" title="Previous page"><a href="{$pagination.url|print_format:$pagination.page_previous}" target="_self">&#8249;</a></span>{/if}
        {foreach name=page_list from=$pagination.page_list item=page_list}
          {if $page_list.if_current == "1"}
            <span class="pagelink_current" title="Current page{$page_list.page}">{$page_list.page}</span>
          {else}
            <span class="pagelink" title="{$page_list.page}"><a href="{$pagination.url|print_format:$page_list.page}" target="_self">{$page_list.page}</a></span>
          {/if}
        {/foreach}
        {if $pagination.page_next != ""}<span class="pagelink_side" title="Next page"><a href="{$pagination.url|print_format:$pagination.page_next}" target="_self">&#8250;</a></span>{/if}
        {if $pagination.page_listend_more != ""}<span class="pagelink_side" title="Jump {$pagination.page_listnum/2|@floor} page"><a href="{$pagination.url|print_format:$pagination.page_listend_more}" target="_self">...</a></span>{/if}
        {if $pagination.page_listend != ""}<span class="pagelink_side" title="Go to last page"><a href="{$pagination.url|print_format:$pagination.page_listend}" target="_self">&raquo;</a></span>{/if}
        <select onchange="self.location.href=this.options[this.selectedIndex].value" class="select">
        {if $pagination.page_selectbegin != ""}<option value="{$pagination.url|print_format:$pagination.page_selectbegin}">{$pagination.page_selectbegin}</option>{/if}
        {if $pagination.page_selectbegin_more != ""}<option value="{$pagination.url|print_format:$pagination.page_selectbegin_more}">...</option>{/if}
        {foreach name=page_select from=$pagination.page_select item=page_select}
          {if $page_select.if_current == "1"}
            <option value="{$pagination.url|print_format:$page_select.page}" selected="selected">{$page_select.page}</option>
          {else}
            <option value="{$pagination.url|print_format:$page_select.page}">{$page_select.page}</option>
          {/if}
        {/foreach}
        {if $pagination.page_selectend_more != ""}<option value="{$pagination.url|print_format:$pagination.page_selectend_more}">...</option>{/if}
        {if $pagination.page_selectend != ""}<option value="{$pagination.url|print_format:$pagination.page_selectend}">{$pagination.page_selectend}</option>{/if}
        </select>
      </span>
    {/if}
    </td>
  </tr>
</table>
<table width="98%" cellpadding="3" cellspacing="0" border="0" align="center" class="block_group">
  <tr align="left" class="block_header">
    <td colspan="3">友情链接</td>
  </tr>
  <tr class="block_title">
    <td width="70%">站点</td>
    <td width="20%">加入时间</td>
    <td width="10%">点击</td>
  </tr>
  {foreach name=friendlink_list from=$friendlink_list item=friendlink_list}
  <tr class="block_list">
    <td align="left">
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_clean">
      <tr>
        <td width="88" rowspan="2">{if $dir_friendlink_cover|is_file:"`$friendlink_list.cover_dir`/`$friendlink_list.cover_filename`" == "1"}<a href="{$control_index}?act=friendlink&friendlink_id={$friendlink_list.id}" target="_blank"><img src="{$dir_friendlink_cover}/{$friendlink_list.cover_dir}{$friendlink_list.cover_filename}" width="88" height="31" border="0" alt="{$friendlink_list.phrase|str_entag:'space,br'}" title="{$friendlink_list.subject|str_entag:'space,br'}" /></a>{else}&nbsp;{/if}</td>
        <td height="20" align="left"><a href="{$control_index}?act=friendlink&friendlink_id={$friendlink_list.id}" target="_blank" alt="{$friendlink_list.phrase|str_entag:'space,br'}" title="{$friendlink_list.subject|str_entag:'space,br'}"><b>{$friendlink_list.phrase|str_entag:'space,br'}</b></a></td>
      </tr>
      <tr align="left">
        <td>{$friendlink_list.brief|str_entag:'space,br'}<br /><br /></td>
      </tr>
    </table>
    </td>
    <td align="center">{$friendlink_list.post_time|date_format:'%Y-%m-%d'}</td>
    <td align="center">{$friendlink_list.click}</td>
  </tr>
  {/foreach}
</table>
<table width="98%" cellpadding="3" cellspacing="0" border="0" align="center">
  <tr>
    <td align="left"></td>
    <td align="right">
    {if $pagination.page_total > 1}
      <span class="pagination_post_list">
        <span class="pagelink_side" title="Total record{$pagination.record_total}">{$pagination.record_total}</span>
        <span class="pagelink_side" title="Current page{$pagination.page_current}/Page{$pagination.page_total}"><span class="pagelink_current_rate">{$pagination.page_current}</span>/{$pagination.page_total}</span>
        {if $pagination.page_listbegin != ""}<span class="pagelink_side" title="Go to first page"><a href="{$pagination.url|print_format:$pagination.page_listbegin}" target="_self">&laquo;</a></span>{/if}
        {if $pagination.page_listbegin_more != ""}<span class="pagelink_side" title="Jump {$pagination.page_listnum/2|@floor} page"><a href="{$pagination.url|print_format:$pagination.page_listbegin_more}" target="_self">...</a></span>{/if}
        {if $pagination.page_previous != ""}<span class="pagelink_side" title="Previous page"><a href="{$pagination.url|print_format:$pagination.page_previous}" target="_self">&#8249;</a></span>{/if}
        {foreach name=page_list from=$pagination.page_list item=page_list}
          {if $page_list.if_current == "1"}
            <span class="pagelink_current" title="Current page{$page_list.page}">{$page_list.page}</span>
          {else}
            <span class="pagelink" title="{$page_list.page}"><a href="{$pagination.url|print_format:$page_list.page}" target="_self">{$page_list.page}</a></span>
          {/if}
        {/foreach}
        {if $pagination.page_next != ""}<span class="pagelink_side" title="Next page"><a href="{$pagination.url|print_format:$pagination.page_next}" target="_self">&#8250;</a></span>{/if}
        {if $pagination.page_listend_more != ""}<span class="pagelink_side" title="Jump {$pagination.page_listnum/2|@floor} page"><a href="{$pagination.url|print_format:$pagination.page_listend_more}" target="_self">...</a></span>{/if}
        {if $pagination.page_listend != ""}<span class="pagelink_side" title="Go to last page"><a href="{$pagination.url|print_format:$pagination.page_listend}" target="_self">&raquo;</a></span>{/if}
        <select onchange="self.location.href=this.options[this.selectedIndex].value" class="select">
        {if $pagination.page_selectbegin != ""}<option value="{$pagination.url|print_format:$pagination.page_selectbegin}">{$pagination.page_selectbegin}</option>{/if}
        {if $pagination.page_selectbegin_more != ""}<option value="{$pagination.url|print_format:$pagination.page_selectbegin_more}">...</option>{/if}
        {foreach name=page_select from=$pagination.page_select item=page_select}
          {if $page_select.if_current == "1"}
            <option value="{$pagination.url|print_format:$page_select.page}" selected="selected">{$page_select.page}</option>
          {else}
            <option value="{$pagination.url|print_format:$page_select.page}">{$page_select.page}</option>
          {/if}
        {/foreach}
        {if $pagination.page_selectend_more != ""}<option value="{$pagination.url|print_format:$pagination.page_selectend_more}">...</option>{/if}
        {if $pagination.page_selectend != ""}<option value="{$pagination.url|print_format:$pagination.page_selectend}">{$pagination.page_selectend}</option>{/if}
        </select>
      </span>
    {/if}
    </td>
  </tr>
</table>
</div>

{include file="pub_footer.htm"}
